package com.miya.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * <p>
 * 用户部门关系
 * </p>
 *
 * @author Caixiaowei
 * @since 2020-05-14
 */
@Data
@TableName("t_dept_user")
public class DeptUser {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableId("user_id")
    private Long userId;

    @TableId("dept_id")
    private Long deptId;

    public DeptUser() {
    }

    public DeptUser(Long userId, Long deptId) {
        this.userId = userId;
        this.deptId = deptId;
    }
}